package com.hdax.dm.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdax.dm.common.exception.DmException;
import com.hdax.dm.entity.item.ItemComment;
import com.hdax.dm.item.vo.ItemCommentVo;
import com.hdax.dm.utils.CommonResponse;

public interface ItemCommentService extends IService<ItemComment>{

    /**
     * 根据商品id获取所有评论信息
     * @param itemId
     * @return
     */
    CommonResponse getComments(Long itemId);


    /**
     * 添加评论信息
     * @param itemCommentVo
     * @return
     */
    CommonResponse addComments(ItemCommentVo itemCommentVo,String token) throws DmException;
}
